From ba69dcba43d31279bcc27076fb15859e5ad520c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Fri, 16 Mar 2012 11:25:59 +0000 Subject: [PATCH] add ability to extract component with 1 component formats --- babl/babl-format.c | 4 +++- tests/Makefile.am | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/babl/babl-format.c b/babl/babl-format.c index 463a92b..d95384e 100644 --- a/babl/babl-format.c +++ b/babl/babl-format.c @@ -67,8 +67,10 @@ format_new (const char *name, if (!component_found) { component_found = 0; - babl_fatal ("matching source component for %s in model %s not found", +#if 0 /* since babl does the right thing, let it happen */ + babl_fatal("matching source component for %s in model %s not found", model->component[i]->instance.name, model->instance.name); +#endif } } diff --git a/tests/Makefile.am b/tests/Makefile.am index e8fdd1d..8b9060d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -10,6 +10,8 @@ TESTS = \ sanity \ babl_class_name \ types \ + extract \ + nop \ n_components \ models \ $(CONCURRENCY_STRESS_TEST) @@ -31,5 +33,6 @@ noinst_PROGRAMS = \ babl-html-dump \ conversions \ formats \ + extract \ nop \ $(TESTS) -- 2.30.2